package org.opens.netty.encoder;

import cn.hutool.core.lang.Assert;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class ApplicationLayer {

    private String bpdu;

    private String desc;

    private String src;

    public ApplicationLayer(String src, String desc, String bpdu) {
        Assert.notBlank(src);
        Assert.notBlank(desc);
        Assert.notBlank(bpdu);

        this.bpdu = bpdu;
        this.desc = desc;
        this.src = src;
    }
}
